<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/guide',
    'namespace' => 'Frieza\\Modules\\Guide\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    //预算提示信息
    $router->get('/listing', 'GuideController@index');

    $router->delete('/listing/{id}', 'GuideController@del');
    $router->get('/listing/edit/{id}', 'GuideController@edit');
    $router->get('/listing/create', 'GuideController@create');
    $router->post('/save', 'GuideController@save');
    $router->post('/listing/publish', 'GuideController@publish');
    $router->any('/listing/cron/publish/{id}', 'GuideController@cronPublish');

    $router->get('/publish/listing', 'PublishGuideController@index');
    $router->delete('/publish/listing/{id}', 'PublishGuideController@del');
    $router->any('/publish/export', 'PublishGuideController@export');

});
